home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 338 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  912 b 

  1. Path: wabbit.cc.uow.edu.au!not-for-mail
  2. From: tp86@wumpus.cc.uow.edu.au (PAOPENG THEERADECH)
  3. Newsgroups: comp.lang.c
  4. Subject: What is '?' in C mean....?????
  5. Date: 5 Jan 1996 02:38:48 +1100
  6. Organization: University of Wollongong, NSW, Australia.
  7. Message-ID: <4cgsa8$bm2@wumpus.cc.uow.edu.au>
  8. NNTP-Posting-Host: wumpus.cc.uow.edu.au
  9. X-Newsreader: NN version 6.5.0 #5
  10.  
  11. Hello to all.
  12.     I got something here to ask you guys. I saw some symbol like "?" be
  13. used in some codes. I don't understand what does it mean. I tried to read some
  14. text books but I still cannot find the detail about "?". The codes that I saw 
  15. are;
  16.         max = x>y ? x:y;
  17.          
  18.             and
  19.  
  20.         printf("%d", x>y ? x:y);
  21.  
  22. Could anyone here explain to me what is "?" means and what the purpose of using
  23. it???. 
  24.     I really appreciate that if you reply via e-mail rather than post 
  25. follow up in this newsgroups.
  26.  
  27.  
  28. Thanks in advance and "Have a good day"
  29.  
  30. --
  31. John.
  32.         
  33.